package cuiying;

public class Mouse {
    private String name;

    public Mouse(String name){
        this.name=name;
    }
    public void printInfo() {
        System.out.println("大家好，我是"+name);
    }
    public void squeak(){
        System.out.println(this.name+"吱吱吱");
    }
    public void stealfood(){
        System.out.println(this.name+"偷吃鱼啦");
    }
    public void setName(String name) {
        this.name=name;
    }
    public String getName() {
        return  this.name;
    }
}

